<template>
  <h2>App组件</h2>
  <h2>msg:{{ msg }}</h2>
  <button @click="msg = '111'">修改msg</button>
  <hr />
  <A></A>
</template>
<script lang="ts" setup>
import { ref, provide } from "vue";
import A from "./components/A.vue";
const msg = ref("hello");
provide("msg", msg);
</script>

<style lang="less" scoped></style>
